package com.heshida.service.impl;

import com.heshida.mapper.BusinessMapper;
import com.heshida.po.Business;
import com.heshida.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BusinessImpl implements BusinessService {

    @Autowired
    private BusinessMapper businessMapper;

    public List<Business> listBusinessByOrderTypeId(Integer orderTypeId) {
        return businessMapper.listBusinessByOrderTypeId(orderTypeId);
    }

    public Business getBusinessById(Integer businessId) {
        return businessMapper.getBusinessById(businessId);
    }
}
